package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 短信信息类
 * </p>
 *
 * @author zhouh
 * @since 2017-10-22
 */
@TableName("biz_sms_info")
public class SmsInfo extends Model<SmsInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 部门id
     */
	private Integer deptid;
    /**
     * 短信内容
     */
	private String content;
    /**
     * 用户号码
     */
	@TableField("user_mobile")
	private String userMobile;
    /**
     * 发送时间
     */
	@TableField("send_time")
	private Date sendTime;
    /**
     * 短信类型[]
     */
	@TableField("sms_type")
	private Integer smsType;
    /**
     * 发送状态[1-发送成功  0-发送失败]
     */
	@TableField("send_status")
	private Integer sendStatus;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Integer getSmsType() {
		return smsType;
	}

	public void setSmsType(Integer smsType) {
		this.smsType = smsType;
	}

	public Integer getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(Integer sendStatus) {
		this.sendStatus = sendStatus;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SmsInfo{" +
			"id=" + id +
			", deptid=" + deptid +
			", content=" + content +
			", userMobile=" + userMobile +
			", sendTime=" + sendTime +
			", smsType=" + smsType +
			", sendStatus=" + sendStatus +
			"}";
	}
}
